package com.zlp.fdfs.boot.entity;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @title: Demo
 * @projectName: platform
 * @description: DataResponse
 * @author: Lu Zhaochun
 * @date: 2020/7/16 10:03
 */
@Data
public class DataResponse<T> extends BaseResponse {

    public DataResponse(){}

    @ApiModelProperty("数据结果")
    private T data;

    public DataResponse(T data) {
        super();
        this.data = data;
    }

    public DataResponse(String code,String message, T data) {
        super(code,message);
        this.data = data;
    }
}
